export default {
  createOrder:{//创建订单，departmentId/departmentCode、orderType、data(选)、orderItems(选)
    url: '/shreypay/order/create',
    require:['token','clientid','title']
  },
  delOrder:{//删除订单
    url: '/shreypay/order/delete',
    require:['token','clientid','id']
  },
  updateOrder:{// 更新订单，title(选)、data(选)
    url: '/shreypay/order/update',
    require:['token','clientid','id']
  },
  getOrder:{// 获取订单，
    url: '/shreypay/order/get',
    require:['token','clientid','id']
  },
  getOrderList:{// 获取订单列表，size(选)、departmentId/departmentCode(选)、orderType(选)、userId(选)、state(选)
    url: '/shreypay/order/list',
    require:['token','clientid','page']
  },
  createOrderItem:{//创建订单项，data(选)、outer_id(选)
    url: '/shreypay/orderItem/create',
    require:['token','clientid','orderId','title','price','num','sn']
  },
  delOrderItem:{//删除订单项
    url: '/shreypay/orderItem/delete',
    require:['token','clientid','id']
  },
  updateOrderItem:{//更新订单项 title(选)、price(选)、num(选)、data(选)
    url: '/shreypay/orderItem/update',
    require:['token','clientid','id']
  },
  getOrderItem:{// 获取订单项，
    url: '/shreypay/orderItem/get',
    require:['token','clientid','id']
  },
  getOrderItemList:{// 获取订单项列表，
    url: '/shreypay/orderItem/list',
    require:['token','clientid','orderId']
  },
  createOrderDiscount:{//创建订单优惠，data(选)
    url: '/shreypay/orderDiscount/create',
    require:['token','clientid','price']
  },
  getOrderDiscount:{//获取订单优惠
    url: '/shreypay/orderDiscount/get',
    require:['token','clientid','id']
  },
  bindOrderDiscount:{//绑定订单优惠
    url: '/shreypay/orderDiscount/confirmBind',
    require:['token','clientid','orderDiscountId','orderId']
  },
  cancelOrderDiscount:{//取消绑定订单优惠
    url: '/shreypay/orderDiscount/cancelBind',
    require:['token','clientid','orderDiscountId','orderId']
  },
  getOrderDiscountList:{//获取订单类型列表
    url: '/shreypay/orderDiscount/list',
    require:['token','clientid','orderDiscountId']
  },
}
